$OpenBSD: patch-plugins_history2_CMakeLists_txt,v 1.2 2014/07/09 20:03:27 zhuk Exp $
Fix linking.
--- plugins/history2/CMakeLists.txt.orig	Thu Apr 17 11:51:13 2014
+++ plugins/history2/CMakeLists.txt	Fri Jun 27 18:49:52 2014
@@ -21,7 +21,7 @@ kde4_add_kcfg_files(kopete_history2_PART_SRCS history2
 kde4_add_plugin(kopete_history2 ${kopete_history2_PART_SRCS})
 
 
-target_link_libraries(kopete_history2  ${KDE4_KHTML_LIBS} kopete ${QT_QTSQL_LIBRARY})
+target_link_libraries(kopete_history2  kopete ${KDE4_KHTML_LIBS} ${QT_QTSQL_LIBRARY})
 
 install(TARGETS kopete_history2  DESTINATION ${PLUGIN_INSTALL_DIR})
 
@@ -38,7 +38,7 @@ kde4_add_kcfg_files(kcm_kopete_history2_PART_SRCS hist
 kde4_add_plugin(kcm_kopete_history2 ${kcm_kopete_history2_PART_SRCS})
 
 
-target_link_libraries(kcm_kopete_history2  ${KDE4_KUTILS_LIBS} ${KDE4_KHTML_LIBS} kopete ${QT_QTSQL_LIBRARY})
+target_link_libraries(kcm_kopete_history2  kopete ${KDE4_KHTML_LIBS} ${KDE4_KUTILS_LIBS} ${QT_QTSQL_LIBRARY})
 
 install(TARGETS kcm_kopete_history2  DESTINATION ${PLUGIN_INSTALL_DIR})
 
